// ----------------------------------------------------------------------------
//
// Structure to represent the Log object containing ID, range start and end dates.
//
// ----------------------------------------------------------------------------
using System;

namespace WERServices
{
    /// <summary>
    /// Structure to represent the Log object containing ID, range start and end dates.
    /// </summary>
    public struct Log
    {
        #region Fields
        public int ID;
        public int fileID;
        public DateTime rangeStartDate;
        public DateTime rangeEndDate;
        #endregion Fields

        #region Constructors
        /// <summary>
        /// Constructor the creates the Log structure.
        /// </summary>
        /// <param name="ID">The log ID.</param>
        /// <param name="fileID">ID of the file to which the log is associated to.</param>
        /// <param name="rangeStartDate">Start date for the data pull range for the file.</param>
        /// <param name="rangeEndDate">End date for the data pull range for the file.</param>
        public Log(int ID, int fileID, DateTime rangeStartDate, DateTime rangeEndDate)
        {
            this.ID = ID;
            this.fileID = fileID;
            this.rangeStartDate = rangeStartDate;
            this.rangeEndDate = rangeEndDate;
        }
        #endregion Constructors
    }
}